
    <li
      class="sidebar-item"
      attr-field="{{::field.name}}"
      data-test-subj="field-{{::field.name}}"
    >
      <div ng-click="toggleDetails(field)" class="sidebar-item-title">
        <field-name field="field"></field-name>
        <button
          ng-click="toggleDisplay(field)"
          ng-class="::field.display ? 'btn-danger' : 'btn-primary'"
          ng-bind="::field.display ? 'remove' : 'add'"
          class="btn btn-xs btn-primary discover-field-toggle" data-test-subj="fieldToggle-{{::field.name}}"></button>
      </div>
    </li>
